import { modelAdd, modelRemove } from './modelOpera.js';

let allObject = [];

class WJJCJGFrameAdd {
  constructor(scene) {
    const modelData = [
      { url: './model/CTC采集机柜体.fbx', num: 1, x: 0, y: 0, z: 0 },
      { url: './model/微机监测内部.fbx', num: 1, x: -12.5, y: -5, z: 2 },
      { url: './model/CTC工控机柜2.fbx', num: 1, x: -14.2, y: -37, z: 0.2 },
      { url: './model/微机监测柜门.fbx', num: 1, x: -1.5, y: -1.5, z: 0 },
      { url: './model/微机监测柜门网格.fbx', num: 1, x: -1.5, y: -1.5, z: 0 },
    ];
    new modelAdd(modelData, (group) => {
      group.position.set(-269, -18.5, 171);
      scene.add(group);
      allObject = group;
    });
  }
}
class WJJCJGFrameRemove {
  constructor(scene) {
    new modelRemove(scene, allObject);
  }
}
export { WJJCJGFrameAdd, WJJCJGFrameRemove };